import React from 'react';
import { connect } from 'react-redux';
import loginSelector from '../selectors/loginSelector';
import Login from '../components/login';
@connect(
    loginSelector,
)
export default class loginContainer extends React.Component {
    static propTypes = {
        isLogin: React.PropTypes.bool.isRequired,
        isLogining: React.PropTypes.bool.isRequired
    };
    //组件卸载前
    componentWillMount(){
    }
    //组件更新前
    componentWillUpdate(nextProps, nextState) {
    }
    render() {
        const { dispatch, isLogining } = this.props;
        return (
            <div>
                {isLogining && <p>logining ... </p>}
                <Login {...this.props}/>
            </div>
        )
    }
}